Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve parsing of ImageCompressionAlgorithm #8281

Merged
merged 3 commits into from
Jul 5, 2024
Merged

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented Jul 5, 2024

Improve parsing of the ImageCompressionAlgorithm enum to allow level customization like zstd(1), as strum only takes Default::default(), i.e. 0 as the level, which the zstd library interprets as "take default", i.e. level 3.

Part of #5431

@arpad-m arpad-m marked this pull request as ready for review July 5, 2024 14:27
@arpad-m arpad-m requested a review from a team as a code owner July 5, 2024 14:27
@arpad-m arpad-m requested a review from skyzh July 5, 2024 14:27
Copy link
Member

@skyzh skyzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, better to add some unit tests on parsing formats like zstd(X).

Copy link

github-actions bot commented Jul 5, 2024

3067 tests run: 2952 passed, 0 failed, 115 skipped (full report)


Flaky tests (6)

Postgres 15

  • test_subscriber_restart: debug
  • test_lsn_lease_size[True]: debug
  • test_lsn_lease_size[False]: debug
  • test_tenant_creation_fails: debug
  • test_pull_timeline[True]: debug

Postgres 14

  • test_tenant_creation_fails: debug

Code coverage* (full report)

  • functions: 32.6% (6935 of 21275 functions)
  • lines: 50.0% (54528 of 109005 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
934fdc0 at 2024-07-05T20:25:50.916Z :recycle:

@arpad-m arpad-m enabled auto-merge (squash) July 5, 2024 16:11
@arpad-m arpad-m mentioned this pull request Jul 5, 2024
@arpad-m arpad-m merged commit b8d031c into main Jul 5, 2024
65 checks passed
@arpad-m arpad-m deleted the arpad/compression_5 branch July 5, 2024 20:18
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
Improve parsing of the `ImageCompressionAlgorithm` enum to allow level
customization like `zstd(1)`, as strum only takes `Default::default()`,
i.e. `None` as the level.

Part of #5431
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
Improve parsing of the `ImageCompressionAlgorithm` enum to allow level
customization like `zstd(1)`, as strum only takes `Default::default()`,
i.e. `None` as the level.

Part of #5431
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
Improve parsing of the `ImageCompressionAlgorithm` enum to allow level
customization like `zstd(1)`, as strum only takes `Default::default()`,
i.e. `None` as the level.

Part of #5431
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
Improve parsing of the `ImageCompressionAlgorithm` enum to allow level
customization like `zstd(1)`, as strum only takes `Default::default()`,
i.e. `None` as the level.

Part of #5431
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
Improve parsing of the `ImageCompressionAlgorithm` enum to allow level
customization like `zstd(1)`, as strum only takes `Default::default()`,
i.e. `None` as the level.

Part of #5431
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
Improve parsing of the `ImageCompressionAlgorithm` enum to allow level
customization like `zstd(1)`, as strum only takes `Default::default()`,
i.e. `None` as the level.

Part of #5431
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants